import request from '@/utils/request'

export const getDepartment = function() {
  return request.get('/company/department')
}
export const simpleUser = function() {
  return request.get('/sys/user/simple')
}
export const addDepartment = function(form) {
  return request.post('/company/department', form)
}
export const deleteDepartment = function(id) {
  return request.delete('/company/department/' + id)
}
export const edit = function(form) {
  return request.put('/company/department/' + form.id, form)
}
export const departmentInfo = function(id) {
  return request.get('/company/department/' + id)
}
